﻿using Furion.Extras.Admin.NET;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace Admin.NET.Application.Entity
{
    [Comment("ProjectWorkload")]
    public class ProjectWorkload : DEntityBase
    {
        [Comment("Project ID")]
        [Required]
        public Guid ProjectId { get; set; }

        [Comment("Workload ID")]
        [Required]
        public Guid WorkloadId { get; set; }

        [Comment("Assignee")]
        public SysUser Assignee { get; set; }

        [Comment("Description")]
        [MaxLength(1000)]
        public string Description { get; set; }

        [Comment("Month")]
        public DateTime? Month { get; set; }

        [Comment("Workload Hour")]
        public decimal? Workload { get; set; }

    }
}
